package cn.sumpu.app.guoguojie.web.util;

public class MultipartFileStatus {

	private long contentLength = 0;
	private long bytesRead = 0;
	private int items;

	public MultipartFileStatus() {
	}

	public long getContentLength() {
		return contentLength;
	}

	public void setContentLength(long contentLength) {
		this.contentLength = contentLength;
	}

	public long getBytesRead() {
		return bytesRead;
	}

	public void setBytesRead(long bytesRead) {
		this.bytesRead = bytesRead;
	}

	public void setItems(int items) {
		this.items = items;
	}

	public int getItems() {
		return items;
	}

	public void setStatus(long bytesRead, long contentLength, int items) {
		this.bytesRead = bytesRead;
		this.contentLength = contentLength;
		this.items = items;
	}

	public void reset() {
		this.bytesRead = 0;
		this.contentLength = 0;
		this.items = 0;
	}

}
